package day240606.thead_demo;

public class Student1 {
    private static Student1 Instance;
    private Student1(){
        System.out.println("验证new的时候是否会调用到我");
    }
    public static Student1 getInstance(){
        if (Instance==null){
            Instance=new Student1();
        }return Instance;
    }
}
